package com.evil.application.pojo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 表单控件下拉选项表
 *
 * @author liyang
 * @date 2022-08-08 00:00
 */
@Data
@TableName(value = "evil_form_control_option")
public class FormControlOption implements Serializable {

    /**
     * id
     */
    @TableId(value = "option_id", type = IdType.AUTO)
    private Long optionId;

    /**
     * 企业id
     */
    @TableField(value = "enterprise_id")
    private Long enterpriseId;

    /**
     * 表单控件id
     */
    @TableField(value = "control_id")
    private Long controlId;

    /**
     * 下拉项url
     */
    @TableField(value = "option_url")
    private String optionUrl;

    /**
     * 下拉项名称
     */
    @TableField(value = "option_name")
    private String optionName;

    /**
     * 下拉项值
     */
    @TableField(value = "option_value")
    private String optionValue;

    /**
     * 是否默认(0:否, 1:是)
     */
    @TableField(value = "is_default")
    private Integer isDefault;

    /**
     * 父级选项id
     */
    @TableField(value = "parent_option_id")
    private Long parentOptionId;

    /**
     * 联动控件
     */
    @TableField(value = "link_control_ids")
    private String linkControlIds;

    /**
     * 排序 越小越靠前
     */
    @TableField(value = "sort")
    private Integer sort;

    /**
     * 源选项id
     */
    @TableField(value = "source_option_id")
    private Long sourceOptionId;

    /**
     * 是否已删除(0:否, 1:是)
     */
    @TableField(value = "is_deleted")
    private Integer isDeleted;

    /**
     * 创建人
     */
    @TableField(value = "creator_id")
    private Long creatorId;

    /**
     * 创建人名字
     */
    @TableField(value = "creator_name")
    private String creatorName;

    /**
     * 修改操作人
     */
    @TableField(value = "modifier_id")
    private Long modifierId;

    /**
     * 修改操作人名字
     */
    @TableField(value = "modifier_name")
    private String modifierName;

    /**
     * 创建时间
     */
    @TableField(value = "created")
    private Date created;

    /**
     * 更新时间
     */
    @TableField(value = "updated")
    private Date updated;

    private static final long serialVersionUID = 1L;

    public static final String COL_OPTION_ID = "option_id";

    public static final String COL_CONTROL_ID = "control_id";

    public static final String COL_OPTION_URL = "option_url";

    public static final String COL_OPTION_NAME = "option_name";

    public static final String COL_OPTION_VALUE = "option_value";

    public static final String COL_IS_DEFAULT = "is_default";

    public static final String COL_PARENT_OPTION_ID = "parent_option_id";

    public static final String COL_LINK_CONTROL_IDS = "link_control_ids";

    public static final String COL_SORT = "sort";

    public static final String COL_SOURCE_OPTION_ID = "source_option_id";

    public static final String COL_IS_DELETED = "is_deleted";

    public static final String COL_CREATOR_ID = "creator_id";

    public static final String COL_CREATOR_NAME = "creator_name";

    public static final String COL_MODIFIER_ID = "modifier_id";

    public static final String COL_MODIFIER_NAME = "modifier_name";

    public static final String COL_CREATED = "created";

    public static final String COL_UPDATED = "updated";
}